from app import db
from datetime import datetime


class Car(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(128))
    description = db.Column(db.String(1280))
    price = db.Column(db.Integer)
    transmission = db.Column(db.String(128))
    img = db.Column(db.String(128))
    img1 = db.Column(db.String(128))
    img2 = db.Column(db.String(128))
    img3 = db.Column(db.String(128))
    available = db.Column(db.Boolean, default=True)


class Rent(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    car_id = db.Column(db.Integer)
    date_and_time_rent_start = db.Column(db.DateTime, default=None)
    date_and_time_rent_end = db.Column(db.DateTime, default=None)

e2ca97de7444a0a887284bf132d49053ff82b00b
<mask token>


class Rent(db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Car(db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Rent(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    car_id = db.Column(db.Integer)
    date_and_time_rent_start = db.Column(db.DateTime, default=None)
    date_and_time_rent_end = db.Column(db.DateTime, default=None)

<mask token>


class Car(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(128))
    description = db.Column(db.String(1280))
    price = db.Column(db.Integer)
    transmission = db.Column(db.String(128))
    img = db.Column(db.String(128))
    img1 = db.Column(db.String(128))
    img2 = db.Column(db.String(128))
    img3 = db.Column(db.String(128))
    available = db.Column(db.Boolean, default=True)


class Rent(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    car_id = db.Column(db.Integer)
    date_and_time_rent_start = db.Column(db.DateTime, default=None)
    date_and_time_rent_end = db.Column(db.DateTime, default=None)

from app import db
from datetime import datetime


class Car(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(128))
    description = db.Column(db.String(1280))
    price = db.Column(db.Integer)
    transmission = db.Column(db.String(128))
    img = db.Column(db.String(128))
    img1 = db.Column(db.String(128))
    img2 = db.Column(db.String(128))
    img3 = db.Column(db.String(128))
    available = db.Column(db.Boolean, default=True)


class Rent(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    car_id = db.Column(db.Integer)
    date_and_time_rent_start = db.Column(db.DateTime, default=None)
    date_and_time_rent_end = db.Column(db.DateTime, default=None)
