Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
1.1 kB
1
Indexable
Never
class CartProducts extends Table {
  IntColumn get cartId => integer().nullable().autoIncrement()();
  IntColumn get productId => integer()();
  IntColumn get productCatId => integer().nullable()();
  IntColumn get productSubCatId => integer().nullable()();
  TextColumn get productName => text().nullable()();
  TextColumn get image => text().nullable()();
  RealColumn get mrp => real().nullable()();
  RealColumn get mmdPrice => real().nullable()();
  RealColumn get wholeSalePrice => real().nullable()();
  IntColumn get minQty => integer().nullable()();
  IntColumn get maxQty => integer().nullable()();
  IntColumn get quantity => integer().nullable()();
  TextColumn get size => text().nullable()();
  // TextColumn get color => text().nullable()();
  IntColumn get discount => integer().nullable()();
  IntColumn get vendorId => integer().nullable()();
  IntColumn get brandId => integer().nullable()();
  DateTimeColumn get createdAt => dateTime().nullable()();
  DateTimeColumn get updatedAt => dateTime().nullable()();

  @override
  Set<Column> get primaryKey => {cartId, productId};
}
Leave a Comment